package com.createidea.scrumfriend.service.sprint;

import java.util.Date;
import java.util.List;

import com.createidea.scrumfriend.dao.sprint.SprintDao;
import com.createidea.scrumfriend.dao.story.StoryDao;
import com.createidea.scrumfriend.to.SprintTo;

public class SprintServiceImpl implements SprintService {

	private SprintDao sprintDao;
	private StoryDao storyDao;

	public SprintDao getSprintDao() {
		return sprintDao;
	}

	public void setSprintDao(SprintDao sprintDao) {
		this.sprintDao = sprintDao;
	}

	@Override
	public List<SprintTo> getSprintsForProjectByStatus(String projectId,
			int status) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void updateSprint(SprintTo sprint) {
		sprintDao.updateSprint(sprint);
		
	}

	@Override
	public void updateSprintStatus(String card_id, String box_id, String user) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void createSprint(SprintTo sprint, String projectId) {
		sprintDao.createSprint(sprint,projectId);
		
	}

	@Override
	public List<SprintTo> getSprintsForProject(String projectId) {
		return sprintDao.getSprintForProject(projectId);
		
	}

	@Override
	public void deleteSprint(String sprintId) {
		sprintDao.deleteSprint(sprintId);
		
	}

	@Override
	public SprintTo getSprintById(String sprintId) {
		return sprintDao.getSprintById(sprintId);
	}

	public StoryDao getStoryDao() {
		return storyDao;
	}

	public void setStoryDao(StoryDao storyDao) {
		this.storyDao = storyDao;
	}

	@Override
	public SprintTo getCurrentSprint(String projectId) {
		// TODO Auto-generated method stub
		return sprintDao.getCurrentSprint(projectId,new Date());
	}
	

	  
}
